import request from '@/utils/request'
import type {
  HotCityResponse,
  UserGenderRatioResponse,
  UserCountResponse,
  MostInterestedCityResponse,
  WordCloudResponse,
} from '@/type/data-analysis'
// 获取10大热门旅游城市
export const getHotCityAPI = (): Promise<HotCityResponse> => {
  return request.get('/apif/hot-city')
}

// 获取用户性别占比
export const getUserGenderRatioAPI = (): Promise<UserGenderRatioResponse> => {
  return request.get('/apif/getGenderRatio')
}

// 获取累计注册用户;昨日新增用户;发布游记数量;今日发布游记
export const getUserCountAPI = (): Promise<UserCountResponse> => {
  return request.get('/apif/userAnalysis')
}

// 获取最感兴趣旅游城市排名
export const getMostInterestedCityAPI = (): Promise<MostInterestedCityResponse> => {
  return request.get('/apif/cityOfInterest')
}

// /获取词云图
export const getWordCloudAPI = (): Promise<WordCloudResponse> => {
  return request.get('/apif/wordCloud')
}
